package cn.itsource.blog.mapper;





import cn.itsource.blog.domain.Article;

import cn.itsource.blog.query.ArticleQuery;
import cn.itsource.vo.ArticleVo;

import java.util.List;

public interface ArticleMapper {
    void add(Article article);
    void update(Article article);
    void delete(Long id);
    Article getOne(Long id);
    List<Article> getAll();

    void patchDelete(Long[] ids);

    List<Article> pageQuery(ArticleQuery query);

    public List<ArticleVo> countNumberByType();

    List<ArticleVo> countNumberByTime();

    List<Article> getRelatedArticles(Long id);

    List<Article> getArticles(Long id);

    void addRecommend(Article article);

    void delRecommend(Long id);

    List<Article> getAllArticleRecommend();

    Integer getArticleRecommendCount();

}
